import request from '@/utils/request'
export default {
    /**
     * 根据课程id查询评论分页列表
     * @param {当前页} current 
     * @param {每页记录数} size 
     * @param {课程id} courseId 
     * @returns 
     */
    getCommentPageList(current, size, courseId) {
        return request({
            url: `/eduservice/comment/getCommentPageList/${current}/${size}`,
            method: 'get',
            params: {courseId}
        })
    },
    /**
     * 添加评论
     * @param {课程评论对象} comment 
     * @returns 
     */
    addComment(comment) {
        return request({
            url: '/eduservice/comment/saveComment',
            method: 'post',
            data: comment
        })
    }
}